<?php

class Admin{
	
	
	public static $pageAdmin='administration.php';
	public static $requestParam='show';


	public static $listeClasses = array(
		'Genre'=>'Les genres',
		'Avertissement'=>'Les avertissements',
		'Film'=>'Les films',
		'Photo'=>'Les photos',
		'BandeAnnonce'=>'Les bandes-annonces',
		'TypeSeance'=>'Les types de séance',
		'Salle'=>'Les salles',
		'Creneau'=>'Les créneaux',
		'Programmation'=>'Les programmations',
		'ProfileClient'=>'Les profils client',
		'Tarif'=>'Les tarifs',
		'JourClos'=>'Les jours de fermeture',
		'Utilisateur'=>'Les utilisateurs',
		'ContenuHTML'=>'Les contenus'
	);
	
	
	public static function getMenu(){
		$link=self::$pageAdmin.'?'.self::$requestParam;
		
		$menu='<fieldset>'.PHP_EOL;
		$menu.=' <legend>Administration CRUD</legend>'.PHP_EOL;
		foreach(self::$listeClasses as $class => $label){
			$htmlLabel=Texte::toHtml($label);
			$menu.=" <a href='$link=$class'>$htmlLabel</a><br/>".PHP_EOL;
		}
		$menu.='</fieldset>'.PHP_EOL;
		
		$menu.='<fieldset>'.PHP_EOL;
		$menu.=' <legend>Outils</legend>'.PHP_EOL;
		$menu.=' <a href="journal_log.php">Journal des logs</a><br/>'.PHP_EOL;
		$menu.=' <a href="parametrage.php">Paramétrage divers</a><br/>'.PHP_EOL;
		$menu.=' <a href="export.php">Sauvegarde et export</a><br/>'.PHP_EOL;
		$menu.='</fieldset>'.PHP_EOL;
		return $menu;
	}
	
	
	
}

?>